﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Machop
{
    /// <summary>
    /// Interaction logic for Login.xaml
    /// </summary>
    public partial class Login : Window
    {
        public Login()
        {
            InitializeComponent();
        }

        private void loginButton_Click(object sender, RoutedEventArgs e)
        {
            if (loginUserTF.Text.Equals("admin") && loginPasswordTF.Password.Equals("admin"))
            {
                this.Hide();
                (new MainWindow()).Show();

            } else
                if (loginUserTF.Text.Equals("obrero") && loginPasswordTF.Password.Equals("obrero"))
                {

                }
                else
                {
                    MessageBox.Show("Nombre y/o usuario incorrecto");
                }
        }
    }
}
